package io.leo.leoutils;

import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.provider.MediaStore;

public class IntentUtils {

    public static final int SYSTEM_IMAGE_CHOOSER=0;

    public static void openSystemImageChooser(Activity activity){
        Intent intent = new Intent("android.intent.action.GET_CONTENT");
        intent.setType("image/*");
        activity.startActivityForResult(intent,SYSTEM_IMAGE_CHOOSER);
    }
}
